<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
    
  <div id="app"></div>

  <script src="../react/react.development.js"></script>
  <script src="../react/react-dom.development.js"></script>

  <script>
    // jsx语法 是必须要 通过babel 转换成 -> React.createElement()
    const message1 = <h2>Hello React</h2>;//这是jsx语法

    const message2 = React.createElement("h2", null, "Hello React");//js语法

    ReactDOM.render(message1, document.getElementById("app"));

  </script>

</body>
</html>